package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {

    /**
     * 查询角色
     * @return
     */
    List<Role> findRole();
    void add(Role role, Integer[] permissionsIds, Integer[] menusIds);

    void edit(Role role, Integer[] permissionsIds, Integer[] menusIds);

    List<Integer> findPermissionById(Integer id);

    List<Integer> findMenuById(Integer id);

    Role findById(Integer id);


    void delById(Integer id);

    PageResult findPage(QueryPageBean queryPageBean);

}
